All Functions of Week 7

sqrt

{base}

Square-root function

factor

{base}

Create factor variables

round

{base}

Rounds numbers

auc

{pRoc}

Returns the area under the curve

as.numeric

{base}

Coerce a vector to numeric

group_tt

{tinytable}

Grouping in tinytable

length

{base}

Returns number of elements in an object

plot

{graphics}

Generic function from base R to produce a plot

summary

{base}

Obtain summary statistics or detailed regression output

attr

{base}

Access or modify the attributes of an object

roc

{pRoc}

Create a Receiver Operating Characteristic (ROC) curve

predict

{stats}

Generate predicted values from model objects

lag

{dplyr}

Shift values in a vector or time series

tibble

{tibble}

A modern data frame from the tidyverse

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

binomial

{base}

Family argument in glm()

as.data.frame

{base}

Functions to check if an object is a data frame, or coerce it if possible.

glm

{base}

Fits generalized linear models

list

{base}

Create a list object

modelsummary

{modelsummary}

Creates regression and data tables

t

{base}

Transpose a matrix or data frame

library

{base}

Load an R package

nobs

{stats}

Return the number of observations in a model object

ungroup

{dplyr}

Resolve grouping created with “group_by”

mean

{base}

Get mean of a vector

c

{base}

Combine values/vectors into a vector

diag

{base}

Extract or construct diagonal elements or matrices

coef

{stats}

Extract model coefficients

log

{base}

log (default base = e)

mutate

{dplyr}

Create new variables

is.na

{base}

Check if a value is NA/elements of vector are NA

names

{base}

Get or set names of an object

matrix

{base}

Creates a matrix from the given set of values.

unlist

{base}

Flattens a list into a vector by extracting all its elements

factor

{base}

Create a factor

coeftest

{lmtest}

Inference for Estimated Coefficients

group_by

{dplyr}

Group tibble/data.frame by a factor variable. All further tidyverse operations are performed group-wise

head

{utils}

Show first 5 rows of a data frame

filter

{dplyr}

Filter out rows of a data frame according to logical vector

order

{base}

Get indexes that will sort a vector

The end!